<?php

class Home_Controller extends BaseController {
    public function index(Request $request, Response $response) {
        if($this->user->type == User::TYPE_TEACHER) {
            $response->redirect('/teacher/');
        }else if($this->user->type == User::TYPE_STUDENT){
            $response->redirect('/student/');
        }

    }
}